package com.mrjy.maintain.dao;

import com.mrjy.common.entity.UserBindEmail;

public interface IUserBindEmailDao {

	/**
	 * 查找邮箱绑定记录
	 * @param encode
	 * @return
	 */
	UserBindEmail queryByMark(String encode);
	
	//插入邮箱绑定记录
	int insert(UserBindEmail userBindEmail);
	
	UserBindEmail queryById(int id);
	
	/**
	 * 查询最新绑定记录
	 * @param userId
	 * @return
	 */
	UserBindEmail queryRecentByUserId(int userId);
	/**
	 * 
	 * @param userBindEmail   userId、email
	 * @return
	 */
	UserBindEmail queryByUserIdEmail(UserBindEmail userBindEmail);
	
	//更新邮箱绑定标志
	int updateById(UserBindEmail userBindEmail);
}
